/*
package com.wn.dynamic.client;

public class TestProxy {
    public static void main(String[] args) {
        UserService userService = new UserServiceImpl();
        //必须经过我代理方法的摧残以后 才能有代理后的对象 因为是我们自己手写的所以需要new
        //如果是进入了aop的环节，将由配置文件来实现这个动态代理的配置
        JdkDynamic jdkDynamic = new JdkDynamic();
        UserService proxyObject = (UserService) jdkDynamic.getProxyObject(userService);

//        JdkDynamic jdkDynamic = new JdkDynamic();
//        UserService proxyObject = (UserService) jdkDynamic.getProxyObject(userService);
//  new Cglib代理
        CglibDynamic cglibDynamic = new CglibDynamic();
        UserService proxyObject = (UserService) cglibDynamic.getProxyObject(userService);
        proxyObject.addOne();
        proxyObject.deleteOne();
    }
}
*/
